package com.j.sdks.bll;

import java.util.List;

/**
 * 
 * @author jm 保存查询结果
 * @param <E>
 *            被存储的domain
 */
public class SearchResult<E> {
	private int rowCount;
	private List<E> rows;

	public SearchResult(int rowCount, List<E> rows) {
		super();
		this.rowCount = rowCount;
		this.rows = rows;
	}

	public int getRowCount() {
		return this.rowCount;
	}

	public void setRowCount(int rowCount) {
		this.rowCount = rowCount;
	}

	public List<E> getRows() {
		return this.rows;
	}

	public void setRows(List<E> rows) {
		this.rows = rows;
	}

	@Override
	public String toString() {
		return "SearchResult [rowCount=" + rowCount + ", rows=" + rows + "]";
	}
	
}
